<template>
	<view class="hs-panel">
		<view class="hs-panel-head">
			<view class="title">推广活动</view>
		</view>
		<view class="hs-panel-body">
			<view class="hs-list-item">
				<view class="hs-list-item-left">承办公司</view>
				<view class="hs-list-item-right">{{ dictionary.getPickerTitle('companyList', activities.company_id) }}
				</view>
			</view>
			<view class="hs-list-item" v-if="activities.start_date">
				<view class="hs-list-item-left">活动开始时间</view>
				<view class="hs-list-item-right">
					{{ activities.start_date }}</view>
			</view>
			<view class="hs-list-item" v-if="activities.end_date">
				<view class="hs-list-item-left">活动结束时间</view>
				<view class="hs-list-item-right">{{ activities.end_date }}</view>
			</view>
			<view class="hs-list-item" v-if="activities.position">
				<view class="hs-list-item-left">活动场地</view>
				<view class="hs-list-item-right">{{ activities.position }}</view>
			</view>
		</view>
	</view>
</template>

<script>
	import dictionary from '@/utils/dictionary.js';
	export default {
		props: {
			activities: Object
		},
		beforeCreate() {
			this.dictionary = dictionary;
		}
	};
</script>

<style lang="less">
	@import url('../common.less');
</style>